package org.jeecg.modules.demo.com.kunpeng.mapper;

import java.util.List;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import org.apache.ibatis.annotations.Param;
import org.jeecg.modules.demo.com.kunpeng.entity.OaStorehouseInfo;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.springframework.stereotype.Repository;

/**
 * @Description: 仓库表
 * @Author: jeecg-boot
 * @Date:   2023-02-28
 * @Version: V1.0
 */
@Repository
public interface OaStorehouseInfoMapper extends BaseMapper<OaStorehouseInfo> {

    /**
     * 根据id 修改仓库状态值
     * @param id
     * @param state
     */
    void updateStorehouseStateById(String id,Integer state);

    /**
     * 根据仓库名称模糊查询
     */
    List<OaStorehouseInfo> oaStorehouseInfoListByName(Page<OaStorehouseInfo> page,String name);
}
